package com.masterrabbit.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.masterrabbit.common.core.annotation.Excel;
import com.masterrabbit.common.core.web.domain.BaseEntity;

/**
 * 应急救援记录对象 emergency_rescue_records
 * 
 * @author laotu
 * @date 2025-03-19
 */
public class EmergencyRescueRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID（自增） */
    private Long rescueId;

    /** 编号（UUID） */
    @Excel(name = "编号", readConverterExp = "U=UID")
    private String rescueNumber;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** userID（用户） */
    @Excel(name = "userID", readConverterExp = "用=户")
    private Long userId;

    /** 车型 */
    @Excel(name = "车型")
    private Long vehicleType;

    /** 救援类型 */
    @Excel(name = "救援类型")
    private Long rescueType;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String licensePlate;

    /** 求助人联系方式 */
    @Excel(name = "求助人联系方式")
    private String contactInfo;

    /** 位置（起点） */
    @Excel(name = "位置", readConverterExp = "起=点")
    private String startingLocation;

    /** 求助人姓名 */
    @Excel(name = "求助人姓名")
    private String requesterName;

    /** （终点） */
    @Excel(name = "", readConverterExp = "终=点")
    private String endingLocation;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** userID（接受救援的商家ID） */
    @Excel(name = "userID", readConverterExp = "接=受救援的商家ID")
    private Long merchantId;



    public void setRescueId(Long rescueId) 
    {
        this.rescueId = rescueId;
    }

    public Long getRescueId() 
    {
        return rescueId;
    }

    public void setRescueNumber(String rescueNumber) 
    {
        this.rescueNumber = rescueNumber;
    }

    public String getRescueNumber() 
    {
        return rescueNumber;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setVehicleType(Long vehicleType) 
    {
        this.vehicleType = vehicleType;
    }

    public Long getVehicleType() 
    {
        return vehicleType;
    }

    public void setRescueType(Long rescueType) 
    {
        this.rescueType = rescueType;
    }

    public Long getRescueType() 
    {
        return rescueType;
    }

    public void setLicensePlate(String licensePlate) 
    {
        this.licensePlate = licensePlate;
    }

    public String getLicensePlate() 
    {
        return licensePlate;
    }

    public void setContactInfo(String contactInfo) 
    {
        this.contactInfo = contactInfo;
    }

    public String getContactInfo() 
    {
        return contactInfo;
    }

    public void setStartingLocation(String startingLocation) 
    {
        this.startingLocation = startingLocation;
    }

    public String getStartingLocation() 
    {
        return startingLocation;
    }

    public void setRequesterName(String requesterName) 
    {
        this.requesterName = requesterName;
    }

    public String getRequesterName() 
    {
        return requesterName;
    }

    public void setEndingLocation(String endingLocation) 
    {
        this.endingLocation = endingLocation;
    }

    public String getEndingLocation() 
    {
        return endingLocation;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rescueId", getRescueId())
            .append("rescueNumber", getRescueNumber())
            .append("status", getStatus())
            .append("userId", getUserId())
            .append("vehicleType", getVehicleType())
            .append("rescueType", getRescueType())
            .append("licensePlate", getLicensePlate())
            .append("contactInfo", getContactInfo())
            .append("startingLocation", getStartingLocation())
            .append("requesterName", getRequesterName())
            .append("endingLocation", getEndingLocation())
            .append("createdAt", getCreatedAt())
            .append("merchantId", getMerchantId())
            .toString();
    }
}
